<%
	c.jsFiles.append('/script/map/maploc_topic.js?v=12')
%>
<style type="text/css">
	#button_add_post{
		float:right;
		width:80px;
		height:25px;
		background:url('/image/global/button_add_post.png');
	}
	#button_add_post:hover{background-position:0 -25px;}
	#link_return{
		float:left;
		width:60px;
		height:25px;
		background:url('/image/global/button_return.png');
	}
	#link_return:hover{background-position:0 -25px;}
</style>
<div class="page_variable">
	<div var_name="info" id="${c.topic.id}" maploc_id="${c.maploc.id}" name="${c.maploc.name}" address="${c.maploc.address}"
		topic_count="${c.topicCount}" rate_count="${c.rateCount}" total_rate_score="${c.totalRateScore}"
		% if c.loginUser != None :
			my_rating="${c.myRating}"
		% endif
	></div>
</div>
<div id="page_bound">
	<a class="bshareDiv" href="http://www.bshare.cn/share">分享按钮</a><script language="javascript" type="text/javascript" src="http://www.bshare.cn/button.js#uuid=&amp;bp=renren,sinaminiblog,qzone,douban,blog163,blogsina,kaixin001,bgoogle&amp;style=3&amp;fs=4&amp;textcolor=#FFF&amp;bgcolor=#ADADAD&amp;text=分享到..."></script>
	<div class="page_column_left_padding15">
		<div id="topic_count" align="center" style="background:url('/image/global/post_replies.png') no-repeat scroll 0 0 transparent;width:46px;height:52px;position:absolute;top:-20px;right:-20px;color:#FFFFFF;font-size:18px;padding-left:3px;padding-top:11px;">
			${c.postCount}
		</div>
		<div class="top"></div>
		<div class="content">
			<h1>${c.topic.title}</h1>
			<div id="topic_quote" style="float:left;width:40px;">
				<img src="/image/global/sign_quote.gif">
			</div>
			<div id="topic_main" style="float:left;padding-left:10px;width:470px;">
				<h3>
					<span style="float:left;">${c.topic.createTime.strftime('%Y-%m-%d %H:%M:%S')}</span>
					<span style="float:left;padding-left:20px;">${c.topic.user.name}</span>
				</h3>
				<div id="topic_content" style="clear:both;padding-left:10px;">${c.topic.content}</div>
			</div>
			<div id="postlist" style="padding-top:30px;clear:both;"></div>
			<div id="postlist_item_example" class="hidden_example">
				<div style="border-top:#CCCCCC 1px solid;line-height:14px;clear:both;padding:7px;">
					<div id="post_content"></div>
					<div style="color:#999999;padding-top:5px;width:100%;position:relative;">
						<span id="post_date" style="display:inline-block;"></span>
						<span id="post_user" style="padding-left:20px;display:inline-block;"></span>
						<span id="post_user_id" style="display:none;"></span>
						% if c.loginUser != None :
							<a id="post_reply_link" href="javascript:void(0);" style="position:absolute;right:5px;">回复</a>
						% endif
					</div>
				</div>
			</div>
			<div id="add_post" style="width:526px;padding-top:30px;width:100%;clear:both;">
				<h2>发起回复</h2>
				<div id="post_bound" style="padding-top:5px;">
					% if c.loginUser == None :
						<div style="padding-left:10px;">登录后发起回复。</div>
					% else :
						<table align="center" style="width:100%;">
							<tbody>
								<tr><td><div id="post_content" style="">
									<textarea id="input_content" name="content" style="width:100%;height:70px;"></textarea>
								</div></td></tr>
								<tr><td><a href="javascript:void(0);" id="button_add_post"></a></td></tr>
							</tbody>
						</table>
					% endif
				</div>
			</div>
			<div style="padding-top:30px;clear:both;"></div>
		</div>
		<div class="bottom"></div>
	</div>
	<div class="page_column_right_padding_left30">
		<div style="height:20px;clear:both;"></div>
		<a id="link_return" href="/map/maploc?id=${c.maploc.id}"></a>
		<div style="height:10px;clear:both;"></div>
		<%include file="maploc_module_locinfo.mako"/>
		% if c.maploc.store != None :
			<div style="height:30px;clear:both;"></div>
			<%include file="maploc_module_discounts.mako"/>
		% endif
		<div style="height:30px;clear:both;"></div>
		<%include file="maploc_module_gallery.mako"/>
	</div>
</div>
 
